package org.apache.dubbo.demo;

/**
 * @author duyutian
 * @version 1.0
 * @date 2020/8/19 18:59
 * 本地存根实现
 */
public class StubServiceStub implements StubService {

    private final StubService stubService;

    // 构造函数传入真正的远程代理对象
    public StubServiceStub(StubService stubService) {
        this.stubService = stubService;
    }


    @Override
    public void helloStub() {
        try {
            stubService.helloStub();
        } catch (Exception e) {
            System.out.println("调用产生了错误");
        }
    }
}
